using System;
using System.Collections.Generic;

namespace WorkFlowCore.BusinessDemo.Web.Models.AdapterDtos
{
    public class WorkTaskDto
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public WorkflowId WorkflowId { get; set; }
        public string WorkflowName { get; set; }
        public string EntityFullName { get; set; }
        public string EntityKeyValue { get; set; }
        public string FormData { get; set; }
        public string FormLink { get; set; }
        public DateTime CreationTime { get; set; }
        public string CreatedUserId { get; set; }
        public string CreatorUserName { get; set; }
        public WorkTaskStatus workTaskStatus { get; set; }
        public bool IsSimulation { get; set; }
    }

    public class WorkflowId
    {
        /// <summary>
        /// 版本名称
        /// </summary>
        public int VersionNo { get; set; }
        /// <summary>
        /// 流程编号
        /// </summary>
        public Guid Id { get; set; }
    }
    public enum WorkTaskStatus
    {
        Pending = 0,
        Processing = 1,
        Processed = 2,
        Canceled = 3,
        Rejected = 4
    }
}
